* When using 'UserCreateForm' hook to add new checkboxes into Special:UserLogin/signup,
the messages can now contain HTML to allow hyperlinking to the site's Terms
of Service page, for example
-
+* Add new hook 'UserLoadFromDatabase' that is called while loading a user
+ from the database.
+
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
* (bug 17000) Special:RevisionDelete now checks if the database is locked before
$user: user object
$name: user name
+'UserLoadFromDatabase': called when loading a user from the database
+$user: user object
+&$s: database query object
+
'UserLoadFromSession': called to authenticate users on external/environmental means; occurs before session is loaded
$user: user object being loaded
&$result: set this to a boolean value to abort the normal authentification process
$dbr = wfGetDB( DB_MASTER );
$s = $dbr->selectRow( 'user', '*', array( 'user_id' => $this->mId ), __METHOD__ );
+ wfRunHooks( 'UserLoadFromDatabase', array( $this, &$s ) );
+
if ( $s !== false ) {
# Initialise user table data
$this->loadFromRow( $s );